package com.zc.finkDemo.mapper;

import com.zc.finkDemo.entities.RelationInfo;

import java.sql.SQLException;

public class RelationMapper {
    public static RelationInfo getRelation(String key) throws SQLException {
        //获取连接查询数据库
//        Connection connection = DruidConnectionPool.getInstance().getConnection();
//        Statement statement = connection.createStatement();
        // 发起SQL查询
//        String sql = "SELECT * FROM relation_table";
//        ResultSet resultSet = statement.executeQuery(sql);
        //封装成RuleInfo
        return new RelationInfo();
    }
}
